package com.bnpparibas.tools.ant.logic.select;

import java.util.Vector;

/**
 * @author V_Thoule
 *
 * To change this generated comment edit the template variable "typecomment":
 * Window>Preferences>Java>Templates.
 * To enable and disable the creation of type comments go to
 * Window>Preferences>Java>Code Generation.
 */
public class ChoiceDef {
	public Vector Choices = new Vector();
	public boolean isExclusif = false;
	
	public void AddChoice(String ChoiceText, String ChoiceValue) {
		Choices.add(new Choice(ChoiceText, ChoiceValue));
	}
	
	public void IsExclusif(boolean value) {
		isExclusif = value;
	}

	public boolean  IsExclusif() {
		return isExclusif;
	}

	/**
	 * Returns the choices.
	 * @return Vector
	 */
	public Choice getChoice(int i) {
		return ((Choice)Choices.elementAt(i));
	}

}
